<template>
  <div class="disFlx">
    <TableMenu class="br-10" title="缴费管理" :menuList="menuList" @change="(key) => (menuKey = key)" />
    <div style="width: calc(100% - 160px)">
      <InterimArrearage v-if="menuKey === 'interimArrearage'" />
      <PaymenRecord v-if="menuKey === 'paymenRecord'" />
    </div>
  </div>
</template>

<script>
import TableMenu from '@/components/TableMenu'
import InterimArrearage from './interimArrearage'
import PaymenRecord from './paymenRecord'

export default {
  components: {
    TableMenu,
    InterimArrearage,
    PaymenRecord,
  },
  data() {
    return {
      menuList: [
        {
          name: '临期/到期会员',
          key: 'interimArrearage',
        },
        {
          name: '缴费记录',
          key: 'paymenRecord',
        },
      ],
      menuKey: 'interimArrearage',
    }
  },
  methods: {},
}
</script>

<style lang="less" scoped></style>
